package com.example.myapplication.entity;

import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.List;

public class BaseResponse {

    private int code;
    private boolean more;
    private List<Singer> artists;
    private List<Song> songs;
    private List<SongList> playlists;
    private List<Hots> data;
    private String lasttime;
    private String total;
    private SearchResult result;
    private List<RankList> list;
    private PlayList playlist;
    //private Data data;


    public PlayList getPlaylist() {
        return playlist;
    }

    public void setPlaylist(PlayList playlist) {
        this.playlist = playlist;
    }

    public List<RankList> getList() {
        return list;
    }

    public void setList(List<RankList> list) {
        this.list = list;
    }

    public SearchResult getResult() {
        return result;
    }

    public void setResult(SearchResult result) {
        this.result = result;
    }

    public boolean isSuccess(){
        return code == 200;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isMore() {
        return more;
    }

    public void setMore(boolean more) {
        this.more = more;
    }

    public List<Singer> getArtists() {
        return artists;
    }

    public void setArtists(List<Singer> artists) {
        this.artists = artists;
    }

    public List<Song> getSongs() {
        return songs;
    }

    public void setSongs(List<Song> songs) {
        this.songs = songs;
    }

    public List<SongList> getPlaylists() {
        return playlists;
    }

    public void setPlaylists(List<SongList> playlists) {
        this.playlists = playlists;
    }

    public String getLasttime() {
        return lasttime;
    }

    public void setLasttime(String lasttime) {
        this.lasttime = lasttime;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public List<Hots> getData() {
        return data;
    }

    public void setData(List<Hots> data) {
        this.data = data;
    }
    
}
